package com.ciwong.epaper.modules.pad.homeworkwidget.widget;

import android.annotation.SuppressLint;
import android.content.Intent;
import android.content.IntentFilter;
import android.widget.RemoteViewsService;

/**
 * date :2018/8/29
 * author: lzh
 * description: 处理远程view的服务
 * version:2.10
 */
@SuppressLint("NewApi")
public class HomeworkWidgetService extends RemoteViewsService  {

    private static final String TAG = "HomeworkWidgetService";

    @Override
    public RemoteViewsFactory onGetViewFactory(Intent intent) {
        return new HomeworkListRemoteViewsFactory(this.getApplicationContext(), intent);
    }

    @Override
    public void onCreate() {
        super.onCreate();
    }

    @Override
    public int onStartCommand(Intent intent, int flags, int startId) {
        return START_NOT_STICKY;
    }

}